<table border="0" cellspacing="1px" cellpadding="10px "align="center" width="100%">
	<tr>
  	<td align="left"><strong>Total:</strong>&nbsp;<{$TOTAL}></td>
    <td align="right"><{$NAVIGATION_PAGE}></td>
  </tr>
</table>
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="20">#</th>
        <th width="100">Image</th>
        <th>Title</th>
        <th width="120">Create date</th>
        <th width="60">Status</th>
        <th width="60">Send Newsletter</th>
        <th width="60" colspan="2">Action</th>
    </tr>
    <{assign var='keyList' value='0'}>
    <{while $objListNews->fetch()}>
    <{assign var='keyList' value=$keyList+1}>
    <tr>
        <td><{$intStart+$keyList}></td>
        <td>
        	<img border="0" width="100" src="<{$smarty.const.APPLICATION_URL}>images/news/solvay_<{$objListNews->image}>" />
        </td>
        <td> <{$objListNews->title}> </td>
        <td> <{$objListNews->created}> </td>
        <td> <{if $objListNews->status eq 1}>Yes<{else}>No<{/if}> </td>
         <td> <{if $objListNews->newsletter eq 1}>Yes<{else}>No<{/if}> </td>
        <td align="center"> 
        	<a href="<{$smarty.const.APPLICATION_URL}>admin/alumni/news/edit/<{$objListNews->id}>" title="Edit" class="link_edit" />
        </td>
        <td align="center"> 
          <a href="#" onclick="deleleNews(<{$objListNews->id}>)" title="Edit" class="link_delete" />
        </td>
    </tr>
    <{/while}>
</table>
<div style="text-align:left; margin:10px 0px;"> 
	<a class="btn_add" style="padding:5px 15px;" href="<{$smarty.const.APPLICATION_URL}>admin/alumni/news/add">Add News</a>
</div>
<script type="text/javascript">
	var xoad_handler = <{$xoad_handler}>;
	function deleleNews(p_intId)
	{
		if ( confirm("Are you really want to delete this news?") )
		{
			callAJAX('xoad_handler', 'deletenews', $H({news_id: p_intId}), deleleNews_callBack);
		}
	}
	var deleleNews_callBack = function deleleNews_callBack(results)
	{
		if (results=="SUCCESS")
		{
			window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname;
		}
		else
		{
			alert("Action successfully!");
		}
	}
	
	function onPage(p_intPage, attach)
	{
		window.location.href = application_url + "admin/alumni/news/list/" + p_intPage;
	}
</script>